-- world.event = {
--     S_EVENT_INVALID = 0,
--     S_EVENT_SHOT = 1,
--     S_EVENT_HIT = 2,
--     S_EVENT_TAKEOFF = 3,
--     S_EVENT_LAND = 4,
--     S_EVENT_CRASH = 5,
--     S_EVENT_EJECTION = 6,
--     S_EVENT_REFUELING = 7,
--     S_EVENT_DEAD = 8,
--     S_EVENT_PILOT_DEAD = 9,
--     S_EVENT_BASE_CAPTURED = 10,
--     S_EVENT_MISSION_START = 11,
--     S_EVENT_MISSION_END = 12,
--     S_EVENT_TOOK_CONTROL = 13,
--     S_EVENT_REFUELING_STOP = 14,
--     S_EVENT_BIRTH = 15,
--     S_EVENT_HUMAN_FAILURE = 16,
--     S_EVENT_DETAILED_FAILURE = 17,
--     S_EVENT_ENGINE_STARTUP = 18,
--     S_EVENT_ENGINE_SHUTDOWN = 19,
--     S_EVENT_PLAYER_ENTER_UNIT = 20,
--     S_EVENT_PLAYER_LEAVE_UNIT = 21,
--     S_EVENT_PLAYER_COMMENT = 22,
--     S_EVENT_SHOOTING_START = 23,
--     S_EVENT_SHOOTING_END = 24,
--     S_EVENT_MARK_ADDED  = 25,
--     S_EVENT_MARK_CHANGE = 26,
--     S_EVENT_MARK_REMOVED = 27,
--     S_EVENT_KILL = 28,
--     S_EVENT_SCORE = 29,
--     S_EVENT_UNIT_LOST = 30,
--     S_EVENT_LANDING_AFTER_EJECTION = 31,
--     S_EVENT_PARATROOPER_LENDING = 32,
--     S_EVENT_DISCARD_CHAIR_AFTER_EJECTION = 33,
--     S_EVENT_WEAPON_ADD = 34,
--     S_EVENT_TRIGGER_ZONE = 35,
--     S_EVENT_LANDING_QUALITY_MARK = 36,
--     S_EVENT_BDA = 37,
--     S_EVENT_AI_ABORT_MISSION = 38,
--     S_EVENT_DAYNIGHT = 39,
--     S_EVENT_FLIGHT_TIME = 40,
--     S_EVENT_PLAYER_SELF_KILL_PILOT = 41,
--     S_EVENT_PLAYER_CAPTURE_AIRFIELD = 42,
--     S_EVENT_EMERGENCY_LANDING = 43,
--     S_EVENT_UNIT_CREATE_TASK = 44,
--     S_EVENT_UNIT_DELETE_TASK = 45,
--     S_EVENT_SIMULATION_START = 46,
--     S_EVENT_WEAPON_REARM = 47,
--     S_EVENT_WEAPON_DROP = 48,
--     S_EVENT_UNIT_TASK_TIMEOUT = 49,
--     S_EVENT_UNIT_TASK_STAGE = 50,
--     S_EVENT_MAX = 51,
--   }

-- onGameEvent(eventName,arg1,arg2,arg3,arg4,arg5,arg6,arg7)
-- --"friendly_fire", playerID, weaponName, victimPlayerID
-- --"mission_end", winner, msg
-- --"kill", killerPlayerID, killerUnitType, killerSide, victimPlayerID, victimUnitType, victimSide, weaponName
-- --"self_kill", playerID
-- --"change_slot", playerID, slotID, prevSide
-- --"connect", playerID, name
-- --"disconnect", playerID, name, playerSide, reason_code
-- --"crash", playerID, unit_missionID
-- --"eject", playerID, unit_missionID
-- --"takeoff", playerID, unit_missionID, airdromeName
-- --"landing", playerID, unit_missionID, airdromeName
-- --"pilot_death", playerID, unit_missionID

package.path  = package.path .. ";.\\LuaSocket\\?.lua"
package.cpath = package.cpath .. ";.\\LuaSocket\\?.dll"

SOCKET = require("socket")
HTTP = require("http")
local host = "localhost"
local port = 8079

